<?php

namespace AdminBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * AuthItemChild
 *
 * @ORM\Table(name="auth_item_child", options={"comment": "角色/权限继承"})
 * @ORM\Entity
 */
class AuthItemChild
{
    /**
     * @var string
     * @ORM\Id
     * @ORM\Column(name="parent", type="string", length=64)
     */
    private $parent;

    /**
     * @var string
     * @ORM\Id
     * @ORM\Column(name="child", type="string", length=64)
     */
    private $child;


    public function __construct($parent, $child)
    {
        $this->parent = $parent;
        $this->child = $child;
    }

    /**
     * Set parent
     *
     * @param string $parent
     *
     * @return AuthItemChild
     */
    public function setParent($parent)
    {
        $this->parent = $parent;

        return $this;
    }

    /**
     * Get parent
     *
     * @return string
     */
    public function getParent()
    {
        return $this->parent;
    }

    /**
     * Set child
     *
     * @param string $child
     *
     * @return AuthItemChild
     */
    public function setChild($child)
    {
        $this->child = $child;

        return $this;
    }

    /**
     * Get child
     *
     * @return string
     */
    public function getChild()
    {
        return $this->child;
    }
}
